package nl.jjsoft.airlock.test
{
	import nl.jjsoft.airlock.controller.ILoginController;
	
	import org.mock4as.Mock;

	public class LoginControllerMock extends Mock implements ILoginController
	{
		public var keySecure:Boolean = true;
		public var doesDbExists:Boolean = true;
		public var loginToDB:Boolean = true;
		
		public function LoginControllerMock()
		{
			super();
		}
		
		public function dbExists(dbPath:String):Boolean
		{
			return doesDbExists;
		}
		
		public function getDefaultDbPath():String
		{
			record("getDefaultDbPath");
			return "";
		}
		
		public function createPasswordDB(dbPath:String, safeCombination:String):void
		{
			record("createPasswordDB", safeCombination, dbPath);			
		}
		
		public function loginToPasswordDB(dbPath:String, safeCombination:String):Boolean
		{
			record("loginToPasswordDB", safeCombination, dbPath);
			return loginToDB;
		}
		
		public function isKeySecure(key:String):Boolean
		{
			record("isKeySecure", key);
			return keySecure;
		}
		
	}
}